import request from '@/utils/request'

export function list(data) {
  return request({ url: '/knifeplate/list', data: data, method: 'post' })
}

export function addOrUpdate(data) {
  return request({ url: '/knifeplate/add', data: data, method: 'post' })
}

export function getKnife(id) {
  return request({ url: '/knifeplate/' + id, method: 'get' })
}

export function getKnifeList() {
  return request({ url: '/knifeplate/all', method: 'get' })
}

export function delKnife(id) {
  return request({ url: '/knifeplate/' + id, method: 'delete' })
}

